package cn.offer.service.impl;

import cn.offer.domain.YixuePaotuiAddress;
import cn.offer.domain.YixuePaotuiAddressExample;
import cn.offer.mapper.YixuePaotuiAddressMapper;
import cn.offer.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Snake Eyes
 * @PROJECT_NAME: paotui
 * @DESCRIPTION:
 * @USER: 11647
 * @DATE: 2021/5/19 14:16
 * @Email: 1164763541@qq.com
 */
@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private YixuePaotuiAddressMapper addressMapper;


    @Override
    public long countByExample(YixuePaotuiAddressExample example) {
        return addressMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(YixuePaotuiAddressExample example) {
        return addressMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return addressMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(YixuePaotuiAddress record) {
        return addressMapper.insert(record);
    }

    @Override
    public int insertSelective(YixuePaotuiAddress record) {
        return addressMapper.insertSelective(record);
    }

    @Override
    public List<YixuePaotuiAddress> selectByExample(YixuePaotuiAddressExample example) {
        return addressMapper.selectByExample(example);
    }

    @Override
    public YixuePaotuiAddress selectByPrimaryKey(Integer id) {
        return addressMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(YixuePaotuiAddress record, YixuePaotuiAddressExample example) {
        return addressMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(YixuePaotuiAddress record, YixuePaotuiAddressExample example) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(YixuePaotuiAddress record) {
        return addressMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(YixuePaotuiAddress record) {
        return addressMapper.updateByPrimaryKey(record);
    }

}
